const webpackConfigProduction = require("./webpack.config.prod")
module.exports = {
  ...webpackConfigProduction,
  mode: "development",
  devServer: {
    port: 8090, // 端口号
    open: true, // 自动打开浏览器
    compress: true, //启动gzip压缩
    liveReload: true, //启动自动更新
    historyApiFallback: true, //服务器不处理history路由的请求
    proxy: {
      "/api": {
        target: "http://127.0.0.1:8000",
        pathRewrite: {
          "^/api": ""
        }
      }
    },
  }
}